<template>
  <div>
    <van-nav-bar title="我的评论" left-arrow @click-left="$router.history.go(-1)" >
      <span slot='left' class="topleftIcon"><img src='../../../public/images/qt_75.png'/></span>
    </van-nav-bar>

    <div class="comments-box">
      <div class="num-box flex">
        <span>8</span>
        <span>5</span>
        <span>12</span>
      </div>
      
      <van-tabs v-model="activeName" color="rgba(74,172,233,1)">

        <van-tab title="我的评论">
          <myComments/>
        </van-tab>

        <van-tab title="我的留言">
            <myMessage />
        </van-tab>

        <van-tab title="我的点赞">
          <myCompliments />
        </van-tab>

      </van-tabs>
    </div>
  </div>
</template>

<script>
import myComments from "./comments/myComments";
import myCompliments from "./comments/myCompliments";
import myMessage from "./comments/myMessage";
export default {
  name: "comments",
  components:{
      myComments,
      myCompliments,
      myMessage
  },    
  data() {
    return {
      activeName:0
    };
  },
  methods: {
    goHandle() {
      console.log("跳转");
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.comments-box {
  width: 100%;
}
.comments-box .num-box {
  height: 1rem;
}
.comments-box .num-box span {
  display: block;
  width: 33.3%;
  text-align: center;
  line-height: 0.6rem;
  padding-top: 0.4rem;
  font-size: 0.36rem;
  font-weight: bold;
}

.tie {
  padding: 0.3rem;
  position: relative;
  border-top: 0.3rem solid #f5f5f5;
}
.tie .top .pic {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  overflow: hidden;
}
.tie .top .txt1 {
  margin-left: 0.25rem;
}
.tie .top .txt1 .title .name {
  font: 0.32rem/0.35rem "微软雅黑";
  color: #4aace9;
  width: 1.5rem;
  float: left;
  height: 0.45rem;
}
.tie .top .txt1 .time {
  font: 0.24rem/0.35rem "微软雅黑";
  color: #999999;
}
.tie .top .btn_gz {
  width: 0.27;
  height: 0.28rem;
  display: block;
  margin-top: 0.26rem;
}
.tie .txt2 {
  font: 0.32rem/0.4rem "微软雅黑";
  color: #333333;
  margin: 0.3rem 0;
}
.tie .txt2 .more {
  color: #4aace9;
  margin-left: 0.2rem;
  font: 0.3rem/0.4rem "微软雅黑";
}
.tie .pic img {
  display: block;
  height: 1.4rem;
  margin-top: 0.04rem;
  width: 2.18rem;
  margin-bottom: 0.18rem;
}
.tie .bottom {
  font: 0.24rem/0.34rem "微软雅黑";
  color: #aaaaaa;
}
.tie .bottom .otherNum1 {
  float: right;
}
.tie .bottom img {
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  margin-right: 0.1rem;
}
</style>
